-- GENERATED SPELL FOR [Sunblade Slayer] --


function spell0_25368(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(47001,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25368', 603, 1)
end

function spell1_25368(pUnit, Event) --@Slaying Shot,n/a--
pUnit:FullCastSpellOnTarget(46557,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25368', 8000, 1)
end

function Sorts_25368(pUnit, Event)
local choix_sorts_25368 = math.random(0, 1)
if choix_sorts_25368 == 0 then
pUnit:RegisterEvent('spell0_25368', 1, 1)
end
if choix_sorts_25368 == 1 then
pUnit:RegisterEvent('spell1_25368', 1, 1)
end
end

function mob25368_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25368', math.random(1500, 3000), 1)
end

function mob25368_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25368_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25368_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25368, 1, 'mob25368_Action')
RegisterUnitEvent(25368, 2, 'mob25368_Leave')
RegisterUnitEvent(25368, 3, 'mob25368_Kill')
RegisterUnitEvent(25368, 4, 'mob25368_Die')
